gtkcssimagelinear.c: Avoid VLAs
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 21 Dec 2016 03:48:56 +0000 (11:48 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 22 Dec 2016 00:40:32 +0000 (08:40 +0800)
commit23edff1606165357e8efcab82b00e55b43ca7155
treeb15d032403eb401aee36676dd693feb333e8f11c
parente64947662a8f8c9e8f3e2b5565295d8f8ff3746b
gtkcssimagelinear.c: Avoid VLAs

VLAs are not supported by Visual Studio and possibly other compilers that
are supported by GTK+-3.90+, and probably never will be, although it is a
C99 specification, and it became optional for C11.  It is also not a part
of the newer compiler requirements that are listed out for GTK+-3.90.x.

There exist concerns about the implementation of VLAs in compilers that
support them as well, so change it to a g_newa() approach.

https://bugzilla.gnome.org/show_bug.cgi?id=773299
gtk/gtkcssimagelinear.c